Optimal. Leaf size=266 \[ \frac {(2 c d-b e)^3 (-3 b e g-2 c d g+8 c e f) \tan ^{-1}\left (\frac {e (b+2 c x)}{2 \sqrt {c} \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}\right )}{128 c^{5/2} e^2}+\frac {(b+2 c x) (2 c d-b e) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2} (-3 b e g-2 c d g+8 c e f)}{64 c^2 e}+\frac {\left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2} (-3 b e g-2 c d g+8 c e f)}{24 c e^2}-\frac {g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{5/2}}{4 c e^2 (d+e x)} \]
________________________________________________________________________________________
Rubi [A] time = 0.33, antiderivative size = 266, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 44, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.114, Rules used = {794, 664, 612, 621, 204} \begin {gather*} \frac {(b+2 c x) (2 c d-b e) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2} (-3 b e g-2 c d g+8 c e f)}{64 c^2 e}+\frac {(2 c d-b e)^3 (-3 b e g-2 c d g+8 c e f) \tan ^{-1}\left (\frac {e (b+2 c x)}{2 \sqrt {c} \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}\right )}{128 c^{5/2} e^2}+\frac {\left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2} (-3 b e g-2 c d g+8 c e f)}{24 c e^2}-\frac {g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{5/2}}{4 c e^2 (d+e x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 612
Rule 621
Rule 664
Rule 794
Rubi steps
\begin {align*} \int \frac {(f+g x) \left (c d^2-b d e-b e^2 x-c e^2 x^2\right )^{3/2}}{d+e x} \, dx &=-\frac {g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{5/2}}{4 c e^2 (d+e x)}-\frac {\left (c e^3 f-\left (-c d e^2+b e^3\right ) g+\frac {5}{2} e \left (-2 c e^2 f+b e^2 g\right )\right ) \int \frac {\left (c d^2-b d e-b e^2 x-c e^2 x^2\right )^{3/2}}{d+e x} \, dx}{4 c e^3}\\ &=\frac {(8 c e f-2 c d g-3 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{24 c e^2}-\frac {g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{5/2}}{4 c e^2 (d+e x)}+\frac {((2 c d-b e) (8 c e f-2 c d g-3 b e g)) \int \sqrt {c d^2-b d e-b e^2 x-c e^2 x^2} \, dx}{16 c e}\\ &=\frac {(2 c d-b e) (8 c e f-2 c d g-3 b e g) (b+2 c x) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{64 c^2 e}+\frac {(8 c e f-2 c d g-3 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{24 c e^2}-\frac {g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{5/2}}{4 c e^2 (d+e x)}+\frac {\left ((2 c d-b e)^3 (8 c e f-2 c d g-3 b e g)\right ) \int \frac {1}{\sqrt {c d^2-b d e-b e^2 x-c e^2 x^2}} \, dx}{128 c^2 e}\\ &=\frac {(2 c d-b e) (8 c e f-2 c d g-3 b e g) (b+2 c x) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{64 c^2 e}+\frac {(8 c e f-2 c d g-3 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{24 c e^2}-\frac {g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{5/2}}{4 c e^2 (d+e x)}+\frac {\left ((2 c d-b e)^3 (8 c e f-2 c d g-3 b e g)\right ) \operatorname {Subst}\left (\int \frac {1}{-4 c e^2-x^2} \, dx,x,\frac {-b e^2-2 c e^2 x}{\sqrt {c d^2-b d e-b e^2 x-c e^2 x^2}}\right )}{64 c^2 e}\\ &=\frac {(2 c d-b e) (8 c e f-2 c d g-3 b e g) (b+2 c x) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{64 c^2 e}+\frac {(8 c e f-2 c d g-3 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{24 c e^2}-\frac {g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{5/2}}{4 c e^2 (d+e x)}+\frac {(2 c d-b e)^3 (8 c e f-2 c d g-3 b e g) \tan ^{-1}\left (\frac {e (b+2 c x)}{2 \sqrt {c} \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}\right )}{128 c^{5/2} e^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 2.57, size = 361, normalized size = 1.36 \begin {gather*} \frac {(d+e x) \sqrt {(d+e x) (c (d-e x)-b e)} \left (\frac {\sqrt {e (2 c d-b e)} \left (\frac {b e-c d+c e x}{b e-2 c d}\right )^{3/2} (-3 b e g-2 c d g+8 c e f) \left (2 c^2 e^8 (d+e x)^2 \sqrt {e (2 c d-b e)} (b e-2 c d) \sqrt {\frac {b e-c d+c e x}{b e-2 c d}} (7 b e-10 c d+4 c e x)-3 e^6 (2 c d-b e)^3 \left (\sqrt {c} e^{5/2} \sqrt {d+e x} (b e-2 c d) \sin ^{-1}\left (\frac {\sqrt {c} \sqrt {e} \sqrt {d+e x}}{\sqrt {e (2 c d-b e)}}\right )+c e^2 (d+e x) \sqrt {e (2 c d-b e)} \sqrt {\frac {b e-c d+c e x}{b e-2 c d}}\right )\right )}{16 c^2 e^7 (d+e x)^2 (b e-c d+c e x)^2}-3 e^2 g (b e-c d+c e x)^2\right )}{12 c e^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 180.26, size = 0, normalized size = 0.00 \begin {gather*} \text {\$Aborted} \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.59, size = 809, normalized size = 3.04 \begin {gather*} \left [-\frac {3 \, {\left (8 \, {\left (8 \, c^{4} d^{3} e - 12 \, b c^{3} d^{2} e^{2} + 6 \, b^{2} c^{2} d e^{3} - b^{3} c e^{4}\right )} f - {\left (16 \, c^{4} d^{4} - 24 \, b^{2} c^{2} d^{2} e^{2} + 16 \, b^{3} c d e^{3} - 3 \, b^{4} e^{4}\right )} g\right )} \sqrt {-c} \log \left (8 \, c^{2} e^{2} x^{2} + 8 \, b c e^{2} x - 4 \, c^{2} d^{2} + 4 \, b c d e + b^{2} e^{2} - 4 \, \sqrt {-c e^{2} x^{2} - b e^{2} x + c d^{2} - b d e} {\left (2 \, c e x + b e\right )} \sqrt {-c}\right ) + 4 \, {\left (48 \, c^{4} e^{3} g x^{3} + 8 \, {\left (8 \, c^{4} e^{3} f - {\left (8 \, c^{4} d e^{2} - 9 \, b c^{3} e^{3}\right )} g\right )} x^{2} - 8 \, {\left (8 \, c^{4} d^{2} e - 2 \, b c^{3} d e^{2} - 3 \, b^{2} c^{2} e^{3}\right )} f + {\left (64 \, c^{4} d^{3} - 76 \, b c^{3} d^{2} e + 36 \, b^{2} c^{2} d e^{2} - 9 \, b^{3} c e^{3}\right )} g - 2 \, {\left (8 \, {\left (6 \, c^{4} d e^{2} - 7 \, b c^{3} e^{3}\right )} f + {\left (12 \, c^{4} d^{2} e - 4 \, b c^{3} d e^{2} - 3 \, b^{2} c^{2} e^{3}\right )} g\right )} x\right )} \sqrt {-c e^{2} x^{2} - b e^{2} x + c d^{2} - b d e}}{768 \, c^{3} e^{2}}, -\frac {3 \, {\left (8 \, {\left (8 \, c^{4} d^{3} e - 12 \, b c^{3} d^{2} e^{2} + 6 \, b^{2} c^{2} d e^{3} - b^{3} c e^{4}\right )} f - {\left (16 \, c^{4} d^{4} - 24 \, b^{2} c^{2} d^{2} e^{2} + 16 \, b^{3} c d e^{3} - 3 \, b^{4} e^{4}\right )} g\right )} \sqrt {c} \arctan \left (\frac {\sqrt {-c e^{2} x^{2} - b e^{2} x + c d^{2} - b d e} {\left (2 \, c e x + b e\right )} \sqrt {c}}{2 \, {\left (c^{2} e^{2} x^{2} + b c e^{2} x - c^{2} d^{2} + b c d e\right )}}\right ) + 2 \, {\left (48 \, c^{4} e^{3} g x^{3} + 8 \, {\left (8 \, c^{4} e^{3} f - {\left (8 \, c^{4} d e^{2} - 9 \, b c^{3} e^{3}\right )} g\right )} x^{2} - 8 \, {\left (8 \, c^{4} d^{2} e - 2 \, b c^{3} d e^{2} - 3 \, b^{2} c^{2} e^{3}\right )} f + {\left (64 \, c^{4} d^{3} - 76 \, b c^{3} d^{2} e + 36 \, b^{2} c^{2} d e^{2} - 9 \, b^{3} c e^{3}\right )} g - 2 \, {\left (8 \, {\left (6 \, c^{4} d e^{2} - 7 \, b c^{3} e^{3}\right )} f + {\left (12 \, c^{4} d^{2} e - 4 \, b c^{3} d e^{2} - 3 \, b^{2} c^{2} e^{3}\right )} g\right )} x\right )} \sqrt {-c e^{2} x^{2} - b e^{2} x + c d^{2} - b d e}}{384 \, c^{3} e^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.06, size = 1817, normalized size = 6.83
result too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\left (f+g\,x\right )\,{\left (c\,d^2-b\,d\,e-c\,e^2\,x^2-b\,e^2\,x\right )}^{3/2}}{d+e\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (- \left (d + e x\right ) \left (b e - c d + c e x\right )\right )^{\frac {3}{2}} \left (f + g x\right )}{d + e x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________